*{
    box-sizing: border-box;
}

html,body{
    height: auto;
    overflow: auto;
}

.left{
    float: left;
    width: 30%;
    height: 650px;
    .swiper{
        width: 100%;
        height: 100%;
        .swiper-wrapper{
            width: 100%;
            height: 100%;
            .swiper-slide{
                div{
                    width: 100%;
                    height: 100%;
                }
                img{
                    display: block;
                    width: 100%;
                    height: 95%;
                }
            }
        }
        .swiper-pagination{
            span{
                width: 15px;
                height: 15px;
            }
        }
    }
}

.right{
    float: right;
    width: 70%;
    height: 100%;
    display: flex;
    color: #838383;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .top{
        width: 100%;
        height: 50px;
        padding: 0 40px;
        border-bottom: 2px solid orange;
        .top-nav{
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            .log{
                height: 98%;
                img{
                    height: 100%;
                }
            }

            .navigation{
                width: 130px;
                height: 100%;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-around;
                & > div{
                    position: relative;
                    width: 50%;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    a{
                        color: #838383;
                        text-decoration: none;
                        &:hover{
                            color: orange;
                        }
                    }
                }
                div:nth-child(2){
                    & > div:nth-child(1){
                        &:hover{
                            color: orange;
                            label{
                                cursor: pointer;
                            }
                        }
                    }
                    input{
                        display: none;
                        &:checked{
                            &+div{
                                height: 80px;
                            }
                        }
                    }
                    .language{
                        position: absolute;
                        top: calc(100% + 15px);
                        left: 0;
                        width: 100%;
                        height: 0;
                        overflow: hidden;
                        transition: .2s linear;
                        box-shadow: 0 0 20px 10px rgb(247, 246, 246);
                        & > div{
                            width: 100%;
                            height: 40px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            background-color: white;
                            // border: 1px solid gray;
                            border-top: none;
                            div:nth-child(1){
                                border-bottom: 1px solid gray;
                            }
                            div:nth-child(2){
                                border-top: 1px solid gray;
                            }
                            &:hover{
                                color: orange;
                                cursor: pointer;
                            }
                        }                        
                    }
                }
            }
        }
    }

    .form{
        width: 100%;
        height: 90%;
        overflow: hidden;
        & > div{
            position: relative;
            width: 380px;
            height: auto;
            margin: 30px auto;
            border-radius: 10px;
            box-shadow: 0 0 20px 10px rgb(247, 246, 246);
            &>input{
                display: none;
            }
            &>input:nth-child(1){
                &:checked ~ .switchover > div:nth-child(1){
                    width: 50%;
                    left: 0;
                }

                &:checked ~ .formInput:nth-last-child(1){
                    transform: scale(0);
                    &>*{
                        transition: none;
                        opacity: 0;
                    }
                }
            }
            &>input:nth-child(2){
                &:checked ~ .switchover > div:nth-child(2){
                    width: 50%;
                }
                &:checked ~ .formInput:nth-last-child(1){
                    transform: scale(1);
                    &>*{
                        opacity: 1;
                    }
                }
            }
            .switchover{
                position: relative;
                display: flex;
                align-items: center;
                justify-content: space-around;
                width: 100%;
                height: 60px;
                font-size: 25px;
                &>div{
                    position: absolute;
                    width: 0;
                    height: 100%;
                    transition: .3s linear;
                    border-bottom: 1px solid orange;
                }
                &>div:nth-child(1){
                    left: 50%;
                }
                &>div:nth-child(2){
                    left: 50%;
                }
                label{
                    display: block;
                    width: 50%;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    z-index: 1;
                    div{
                        width: 50%;
                        height: 100%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                }
                
            }

            .formInput:nth-last-child(1){
                position: absolute;
                top: 60px;
                transform: scale(0);
                transition: .3s linear;
                z-index: 1;
                & > div:nth-child(1){
                    transition: .1s .7s linear;
                    opacity: 0;
                }
                & > div:nth-child(2){
                    transition: .1s .6s linear;
                    opacity: 0;
                }
                & > div:nth-child(3){
                    transition: .1s .5s linear;
                    opacity: 0;
                }
                & > div:nth-child(4){
                    transition: .1s .4s linear;
                    opacity: 0;
                }
            }

            .formInput{
                width: 100%;
                height: auto;
                display: flex;
                padding: 45px 0;
                flex-direction: column;
                align-items: center;
                justify-content: space-around;
                background-color: white;
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
                & > div{
                    margin: 10px 0;
                }

                .agreement{
                    width: 275px;
                    height: auto;
                    overflow: hidden;
                    font-size: 10px;
                    line-height: 20px;
                    input{
                        display: none;
                        &:checked+label > div{
                            background-color: orange;
                        }
                    }
                    label{
                        display: flex;
                        width: 15px;
                        height: 15px;
                        float: left;
                        justify-content: center;
                        align-items: center;
                        margin: 2.5px;
                        border: 2px solid gray;
                        div{
                            width: 10px;
                            height: 10px;
                        }
                    }
                    
                    a{
                        margin: 0 5px;
                        &:hover{
                            color: orange;
                        }
                    }
                }

                .input:nth-child(1){
                    .iconfont{
                        &::before{
                            content: '输入手机号或用户名';
                        }
                    }
                }

                .input:nth-child(2){
                    .iconfont{
                        &::before{
                            content: '输入密码';
                        }
                    }
                }

                .input{
                    position: relative;
                    width: 80%;
                    height: 60px;
                    border: 1px solid gray;
                    &,& *{
                        border-radius: 8px;
                    }
                    .iconfont{
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 50px;
                        height: 100%;
                        font-size: 30px;
                        background-color: #f5f7fa;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        &::before{
                            position: absolute;
                            width: max-content;
                            left: 60px;
                            font-size: 15px;
                            color: gray;
                            transition: .2s linear;
                            background-color: white;
                            pointer-events: none;
                        }
                    }

                    input{
                        width: 100%;
                        height: 100%;
                        padding-left: 55px;
                        outline: none;
                        border: none;
                        font-size: 30px;
                        &:focus + div::before,
                        &:valid + div::before{
                            border-left: 1px solid gray;
                            border-right: 1px solid gray;
                            font-size: 8px;
                            transform: translateX(100px) translateY(-30px);
                        }
                    }
                }

                .input:nth-of-type(2){
                    input{
                        &:focus + div::before,
                        &:valid + div::before{
                            transform: translateX(158px) translateY(-30px);
                        }
                    }
                }

                .button{
                    margin-top: 20px;
                    width: 70%;
                    height: 40px;
                    font-size: 25px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: orange;
                    color: white;
                    border-radius: 8px;
                    &:hover{
                        color: white;
                        cursor: pointer;
                        opacity: .8;
                    }
                }
            }
        }
    }
}